package com.orion.app.domain.entity;

import javax.persistence.ManyToOne;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
@RooJpaEntity(sequenceName = "emp_sal_det_seq")
public class EmployeeSalaryDetail {

    @NotNull
    @ManyToOne
    private EmployeeDetails employee;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double basic;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double dearnessAllowance;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double cca;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double houseRentAllowance;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double conveyance;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double educationAllowance;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double medicalAllowance;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double leaveTravelAllowance;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double lunchAllowance;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double bonus;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double providentFund;

    @DecimalMin("2")
    @DecimalMax("2")
    private Double sa;
}
